package org.example.enum_pojo;

public enum OrderStatus {
    PENDING_PAY(1, "pending_pay"),
    PAID(2, "paid"),
    PENDING_PICKUP(3, "pending_pickup"),
    COMPLETED(4, "completed"),
    CANCELLED(5, "cancelled");

    private final int code;
    private final String name;

    OrderStatus(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
